/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/KeyExchange/dhCalcRequest.h,v 1.3 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#ifndef __DHCALCREQUEST_H__

#include <windows.h>
#include "nhQueue.h"

/* ------------------------------------------------------ */
class CalcRequest {
public:
    CalcRequest(HANDLE hSuccessEvent, HANDLE hFailEvent)
        : m_hSuccessEvent(hSuccessEvent), m_hFailEvent(hFailEvent) {
    }

    virtual bool doCalculation()=0;


    HANDLE m_hSuccessEvent;
    HANDLE m_hFailEvent;
};

typedef NHQueue<CalcRequest*> CalcRequestQueue;


#define __DHCALCREQUEST_H__
#endif
